using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GiveMeMenu.Common.Cache;
using GiveMeMenu.Common.Command;
using GiveMeMenu.Common.LoggerService;
using GiveMeMenu.Interface.ServiceProvider;

namespace GiveMeMenu.Controllers
{
    public class HomeController : Controller
    {
        public ILoggerService LoggerService { get; set; }
        public IGMMServiceProvider ServiceProvider { get; set; }
        KeyEndNode<string, string> Test = new KeyEndNode<string, string>();

        public HomeController(IGMMServiceProvider serviceProvider, ILoggerService loggerService)
        {
            if (serviceProvider != null && loggerService!=null)
            {
                ServiceProvider = serviceProvider;
                LoggerService = loggerService;
            }
        }

        public ActionResult Index()
        {
            LoggerService.Error("Index Page Start");
            var a = Test.Get("a");
            Random rand = new Random();
            return View();
        }

    }
}
